import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'clinicalinvestV3.settings')

app = Celery('clinicalinvestV3')

app.config_from_object('clinicalinvestV3.settings', namespace='CELERY')

# 注册celery任务
app.autodiscover_tasks(['celery_tasks.tasks'])
